<template>
    <header class="header">
        <div class="header-main">
            <div class="header-left">
                <div class="logo">
                    <img src="@/assets/images/logo.png" alt="">
                </div>
                <div class="nav-list">
                    <ul>
                        <li class="active">首页</li>
                        <li>课程</li>
                        <li>会员</li>
                        <li>简历</li>
                        <li>博客</li>
                        <li>系统班</li>
                    </ul>
                </div>
            </div>
            <div class="header-right">
                <div class="search">
                    <el-input class="w-50 m-2 search-input" size="large" placeholder="请输入要搜索的课程"
                        :suffix-icon="Search" />
                </div>
                <div class="login">
                    <span>登录</span> /
                    <span>注册</span>
                </div>
            </div>
        </div>
    </header>
</template>

<script setup>
import { Search } from '@element-plus/icons-vue'
</script>

<style lang="scss" scoped>
.header {
    width: 100%;
    height: 100px;
    box-shadow: 0 5px 6px rgb(0 0 0 / 16%);

    .header-main {
        width: 1140px;
        height: 100%;
        margin: 0 auto;
        // background-color: #bfc;
        display: flex;

        .header-left {
            display: flex;
            // background-color: red;

            .logo {
                width: 140px;
                height: 100%;

                img {
                    width: 100%;
                    height: 100%;
                }
            }

            .nav-list {
                ul {
                    display: flex;
                    margin-left: 20px;

                    li {
                        width: 80px;
                        line-height: 95px;
                        text-align: center;
                        color: #808080;
                        cursor: pointer;
                        &.active{
                            font-weight: 700;
                            border-bottom: 5px solid #388fff;
                        }
                    }
                }
            }
        }

        .header-right {
            display: flex;
            align-items: center;

            .search {
                margin-left: 140px;
            }

            .login {
                margin-left: 40px;
                color: #808080;
                font-weight: 400;
                span {
                    cursor: pointer;
                }
            }
        }
    }
}
</style>
